<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit"> 
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> 
<meta name="format-detection" content="telephone=no" /> 
<link rel="shortcut icon" href="images/logo.ico" />
<title>闪度生活</title>
<meta name="keywords" content=" " />
<meta name="description" content=" " />


<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.css">
<link rel="stylesheet" type="text/css" href="css/swiper-3.4.1.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">

<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/easing.js"></script>
<script src="js/swiper-3.4.1.min.js"></script>
<script src="js/index.js"></script>
<script src="js/main.js"></script>

<script src="./js/vue.js"></script>
<script src="./js/axios.min.js"></script>
<script src="./js/axios-config.js"></script>
<script src="./js/js.cookie.js"></script>
<script src="./js/utils.js"></script>

</head>

<body>
<div id="app" v-cloak>

<!--  / header  -->
<div class="header_longevity">
    <div class="header_map_longevity">   
        <img src="images/jiantou.png" alt="">
        <span>返回</span>
    </div>
    <div class="logo_longevity">添加账户</div>  
</div>
<!--  / header  -->

<div class="myRemain">

<div class="zfb">
  <div class="zfb_sec1">
    <img src="images/zfb2.png" alt="">
  </div>
  <div class="zfb_sec2">
    <ul>
      <li class="zfb_sec2_list">
        <label for="">账户</label>
        <input type="text" placeholder="请输入账户名" v-model="name1">
      </li>
      <li class="zfb_sec2_list">
        <label for="">账号</label>
        <input type="text" placeholder="请输入支付宝账号" v-model="accout1">
      </li>
    </ul>
  </div>
  <div class="zfb_sec3" @click="getUcenter_alipayList()">
    <a href="javascript:void(0);">确认添加</a>
  </div>
</div>
    
</div>

<!--  / footer  -->

<!--  / footer  -->

</div>
</body>
<script>

$(window).ready(function(){

  var vm = new Vue({
    el:"#app",
    data(){
      return{
       userInfo:[],
       accout1:'',
       name1:''     
      }
    },
    created:function(){
      var $this = this;                                                                
    },
    mounted:function(){
      var $this = this;                                         
    },
    methods:{
      //支付宝账号添加
      getUcenter_alipayList:function(){
        var $this = this;
        
        const data = {
           account:$this.accout1,
           name:$this.name1
        }
        
        Axios.post(window.Url.alipayAdd, data).then((res) => {

          tt(res.result,'http://shandu.unohacha.com/wx_shandu/zfb_add.html');
          if(res.result == 1){
              alert(res.info);
              window.location.href = "zfb_list.html";      
          }else if(res.result == 0){
            console.log('支付宝账号添加:'+res.info)
          }
          
          
        }).catch((err) => {
          console.log('支付宝账号添加:'+err)
        })
        
      }
      
    }

  })

$('.header_map_longevity').click(function(){
    history.go(-1);
});

  
})  


</script>
</html>
